import React from "react"
import "./style.less"

export default class Header extends React.Component {

   
    goBack(){
        window.history.back()
    }
    render() {
        return (
            <div id="common-header">
                <span className="back-icon" onClick={this.goBack.bind(this)}>
                    <i className="icon-chevron-left"></i>
                </span>
                <h1 style={{color:'#fff'}}>{this.props.title}</h1>
            </div>
        )
    }
}